sdspotcolorlibrary module

class sd.api.sdspotcolorlibrary.SDSpotColorLibrary(APIContext, handle, *args, **kwargs)

Bases: sd.api.sdapiobject.SDAPIObject

Spot color library. There is only one SDSpotColorLibrary, that you can retrieve from the SDApplication

findClosestSpotColor(spotColorBookName: str, r: float, g: float, b: float) → Optional[sd.api.sdvaluespotcolor.SDValueSpotColor]

Return the closest spot color in a specific color book to a given RGB color

Parameters
  • spotColorBookName – The color book name

  • r – The red component of the RGB color

  • g – The green component of the RGB color

  • b – The blue component of the RGB color

findSpotColorByName(spotColorBookName: str, spotColorName: str) → Optional[sd.api.sdvaluespotcolor.SDValueSpotColor]

Find a spot color in a specific color book by name

Parameters
  • spotColorBookName – The color book name

  • spotColorName – The color name

getClassName() → str

Returns the most specific name of the class this APIObject is

getSpotColorBookName(spotColor: sd.api.sdvaluespotcolor.SDValueSpotColor) → Optional[str]

Return the name of the color book that owns the spot color

Parameters

spotColor – The spot color

getSpotColorName(spotColor: sd.api.sdvaluespotcolor.SDValueSpotColor) → Optional[str]

Return the spot color name

Parameters

spotColor – The spot color

release() → None

Releases an APIObject